﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Sistema_Totem.Logica.Clases
{
    /// <summary>
    /// Clase manejadora de las Opciones de cada ELEMENTO MULTIPLE: ej.: DropDownList, CheckBoxList, etc..
    /// </summary>
    public class Opcion 
    {

        #region Atributos

        //Atributos:

        public int id { get; set; }
        public string label { get; set; }
        public string mivalue { get; set; }
        

        #endregion Atributos


        #region Constructores

        public Opcion()
        {

        }

        /// <summary>
        /// Constructor recomendado, mas completo.
        /// </summary>
        /// <param name="id"></param>
        /// <param name="label"></param>
        /// <param name="mivalue"></param>
        public Opcion(int id, string label, string mivalue)
        {
            this.id = id;
            this.label = label;
            this.mivalue = mivalue;

        }



        #endregion Constructores


        #region Gets, sets

        //Gets, sets:

        public int Id
        {
            get { return id; }
            set { id = value; }
        }


        public string Label
        {
            get { return label; }
            set { label = value; }
        }

        public string miValue
        {
            get { return miValue; }
            set { miValue = value; }
        }

        #endregion Gets, sets


    }
}